package com.blobfish.fiction.common.base.knowledge;

import java.util.Objects;

/**
 * 字典码表接口
 * @author huangbo
 */
public interface IDataDictEnum {
    String getDataDictCode();

    String getDataCode();

    String getDataText();

    default boolean codeEquals(String code) {
        return Objects.equals(this.getDataCode(), code);
    }
}
